package com.example.tests;

public class ContactData implements Comparable<ContactData>
{
	public String firstName;
	public String lastName;
	public String address;
	public String homePhone;
	public String mobilePhone;
	public String workPhone;
	public String email1;
	public String email2;
	public String birthDay;
	public String birthMonth;
	public String birthYear;
	public String group;
	public String address2;
	public String phone2;

	public ContactData(String contactFirstName, String contactLastName,
			String contactAddress, String homePhone, String mobilePhone,
			String workPhone, String contactMail1, String contactMail2,
			String birthDay, String birthMonth, String birthYear,
			String contactGroup, String contactAddress2, String contactPhone2)
	{
		this.firstName = contactFirstName;
		this.lastName = contactLastName;
		this.address = contactAddress;
		this.homePhone = homePhone;
		this.mobilePhone = mobilePhone;
		this.workPhone = workPhone;
		this.email1 = contactMail1;
		this.email2 = contactMail2;
		this.birthDay = birthDay;
		this.birthMonth = birthMonth;
		this.birthYear = birthYear;
		this.group = contactGroup;
		this.address2 = contactAddress2;
		this.phone2 = contactPhone2;
	}

	public ContactData()
	{

	}



	@Override
	public String toString()
	{
		return "ContactData [firstName=" + firstName + ", lastName=" + lastName
				+ ", group=" + group + "]";
	}

	@Override
	public int hashCode()
	{
		int result = 1;
		return result;
	}

	@Override
	public boolean equals(Object obj)
	{
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ContactData other = (ContactData) obj;
		if (firstName == null)
		{
			if (other.firstName != null)
				return false;
		} else if (!firstName.equals(other.firstName))
			return false;
		return true;
	}

	@Override
	public int compareTo(ContactData other)
	{
		return this.firstName.toLowerCase().compareTo(other.firstName.toLowerCase());
	}
}